package com.cdfahe.gms.web.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.cdfahe.common.Constants;

/**
 * @author Donzell
 * @version 1.0
 */
@Controller("publicMsgController")
public class PublicMsgController {
	/**
	 * 企业资质文件控制器
	 * @param model
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/publicmsg")
    public String getStaticPage(Model model,HttpServletRequest request) {
		int blockid =  Integer.parseInt(request.getParameter("blockid"));
		int pageid =  Integer.parseInt(request.getParameter("pageid"));
		if (blockid == Constants.BLO_DIPLOMA) {
			return "diploma/diploma"+pageid;
		}
		return "user/regist";
    }
}
